<template>
  <div class="search">
    <el-row :gutter="10">
      <el-col :xs="24" :sm="12">
        <el-card>
          <template #header>
            <div class="search-header">
              <span>
                线上热门搜索
              </span>
              <i class="el-icon-more" />
            </div>
          </template>
          xxx
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12">
        <el-card>
          <template #header>
            <div class="search-header">
              <span>
                线上热门搜索
              </span>
              <el-radio-group v-model="channel" size="mini">
                <el-radio-button label="1">全部渠道</el-radio-button>
                <el-radio-button label="2">线上</el-radio-button>
                <el-radio-button label="3">门店</el-radio-button>
              </el-radio-group>
            </div>
          </template>

          <div class="search-chart-container">
            <PieChart />
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import PieChart from './components/PieChart.vue'

export default {
  name: 'Search',
  components: {
    PieChart
  },
  data() {
    return {
      channel: '1'
    }
  }
}
</script>

<style lang="sass" scoped>
.search
  margin: 10px
.search-header
  display: flex
  justify-content: space-between
  align-items: center
  height: 28px
.search-chart-container
  height: 300px
</style>
